package com.iraeta.dao.worklog;

import com.iraeta.entity.WorkLog;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WorkLogDao {
    int insertWorkLog(WorkLog workLog);
    int updateWorkLog(WorkLog workLog);
    WorkLog getWorkLogById(int stuId);
    List<WorkLog> selectByCondition(@Param("userId") Integer userId, @Param("startDate") String startDate, @Param("endDate") String endDate);
    int deleteWorkLog(@Param("id") int id);
}
